From: Carlos Garnacho Date: Tue, 30 Apr 2019 12:51:47 +0000 (+0200) Subject: st: Reload icon on style changes only if necessary X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~234 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=94995e9c1e1ffc3eb44c06d23a30a2ac8cd2455d;p=gnome-shell.git st: Reload icon on style changes only if necessary The parameters that may affect the icon on ::style-changed are more size related than visual (we listen to icon theme changes for the latter). It makes sense to just update the icon if the size came out different. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/524 --- diff --git a/src/st/st-icon.c b/src/st/st-icon.c index 04d2d1d3c..8b7015281 100644 --- a/src/st/st-icon.c +++ b/src/st/st-icon.c @@ -206,8 +206,8 @@ st_icon_style_changed (StWidget *widget) } priv->theme_icon_size = (int)(0.5 + st_theme_node_get_length (theme_node, "icon-size")); - st_icon_update_icon_size (self); - st_icon_update (self); + if (st_icon_update_icon_size (self)) + st_icon_update (self); } static void